﻿@{
    ViewBag.Title = "Index";
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <link href="~/Content/plugins/layui/css/layui.css" rel="stylesheet" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@(ZP.Common.ZPCommon.System_Name)</title>
    <!-- 依 赖 样 式 -->
    <link href="~/Content/plugins/pear/css/pear.css" rel="stylesheet" />
    <!-- 加 载 样 式-->
    <link href="~/Content/plugins/admin/css/load.css" rel="stylesheet" />
    <!-- 布 局 样 式 -->
    <link href="~/Content/plugins/admin/css/admin.css" rel="stylesheet" />
    <!-- 主 题 更 换 -->
    <style id="pearadmin-bg-color"></style>
    <!-- 头 部 结 束 -->
</head>
<body class="layui-layout-body pear-admin">
    <!-- 布 局 框 架 -->
    <div class="layui-layout layui-layout-admin">
        @* 顶 部 区 域 *@
        @{ Html.RenderAction("TopPage", "Home"); }
        <!-- 侧 边 区 域 -->
        @{ Html.RenderAction("LeftPage", "Home"); }
        <!-- 视 图 页 面 -->
        <div class="layui-body">
            <div id="content">

            </div>
        </div>
    </div>
    <!-- 遮 盖 层 -->
    <div class="pear-cover"></div>
    <!-- 加 载 动 画-->
    <div class="loader-main">
        <div class="loader"></div>
    </div>

    <!-- 依 赖 脚 本 -->
    <script src="~/Content/plugins/layui/layui.js"></script>
    <script src="~/Content/plugins/pear/pear.js"></script>
    <!-- 框 架 初 始 化 -->
    <script>
        layui.use(['admin', 'jquery', "convert"], function () {
            var admin = layui.admin,
                $ = layui.jquery;
            convert = layui.convert;

            var image = new Image();
            image.src = "/Content/plugins/admin/images/avatar.jpg";
            image.onload = function () {
                $(".layui-nav-img").attr("src", convert.imageToBase64(image));
            }

            // 重新设置配置文件读取路径，默认为同级目录下的 pear.config.json
            admin.setConfigPath("../config/pear.config.json");
            // 进行框架初始化
            admin.render();
        })
    </script>
</body>
</html>


